package com.examination.system.instructor.student.ext;

import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @author 寇淇芮
 * @Date 2019/10/23 14:59
 */
@Data
@Entity
@Table(name= "student_personal_relationship")
@GenericGenerator(name = "studentPersonalRelationship-uuid", strategy = "assigned")
public class StudentPersonalRelationship  implements Serializable {
    @Id
    @Column(name = "student_id",length = 50)
    @GeneratedValue(generator = "studentPersonalRelationship-uuid")
    private String studentId;
    @Column(name = "start_date")
    private Date startDate;
    @Column(name = "end_date")
    private Date endDate;
    @Column(name = "out_of_school_why")
    private String outOfSchoolWhy;
    @Column(name = "resumption_date")
    private Date resumptionDate;

}
